/*
 * XML Type:  XRadioButtonGroupYesNo
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XRadioButtonGroupYesNo
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XRadioButtonGroupYesNo(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XRadioButtonGroupYesNoImpl extends com.seedwill.xul.widget.impl.XRadioButtonGroupImpl implements com.seedwill.xul.widget.XRadioButtonGroupYesNo
{
    private static final long serialVersionUID = 1L;
    
    public XRadioButtonGroupYesNoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LABELYES$0 = 
        new javax.xml.namespace.QName("", "labelYes");
    private static final javax.xml.namespace.QName LABELYESSORT$2 = 
        new javax.xml.namespace.QName("", "labelYesSort");
    private static final javax.xml.namespace.QName LABELNO$4 = 
        new javax.xml.namespace.QName("", "labelNo");
    private static final javax.xml.namespace.QName LABELNOSORT$6 = 
        new javax.xml.namespace.QName("", "labelNoSort");
    
    
    /**
     * Gets array of all "labelYes" elements
     */
    public java.lang.String[] getLabelYesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(LABELYES$0, targetList);
            java.lang.String[] result = new java.lang.String[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
            return result;
        }
    }
    
    /**
     * Gets ith "labelYes" element
     */
    public java.lang.String getLabelYesArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABELYES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "labelYes" elements
     */
    public org.apache.xmlbeans.XmlString[] xgetLabelYesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(LABELYES$0, targetList);
            org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "labelYes" element
     */
    public org.apache.xmlbeans.XmlString xgetLabelYesArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABELYES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlString)target;
        }
    }
    
    /**
     * Returns number of "labelYes" element
     */
    public int sizeOfLabelYesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABELYES$0);
        }
    }
    
    /**
     * Sets array of all "labelYes" element
     */
    public void setLabelYesArray(java.lang.String[] labelYesArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(labelYesArray, LABELYES$0);
        }
    }
    
    /**
     * Sets ith "labelYes" element
     */
    public void setLabelYesArray(int i, java.lang.String labelYes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABELYES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setStringValue(labelYes);
        }
    }
    
    /**
     * Sets (as xml) array of all "labelYes" element
     */
    public void xsetLabelYesArray(org.apache.xmlbeans.XmlString[]labelYesArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(labelYesArray, LABELYES$0);
        }
    }
    
    /**
     * Sets (as xml) ith "labelYes" element
     */
    public void xsetLabelYesArray(int i, org.apache.xmlbeans.XmlString labelYes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABELYES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(labelYes);
        }
    }
    
    /**
     * Inserts the value as the ith "labelYes" element
     */
    public void insertLabelYes(int i, java.lang.String labelYes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(LABELYES$0, i);
            target.setStringValue(labelYes);
        }
    }
    
    /**
     * Appends the value as the last "labelYes" element
     */
    public void addLabelYes(java.lang.String labelYes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LABELYES$0);
            target.setStringValue(labelYes);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "labelYes" element
     */
    public org.apache.xmlbeans.XmlString insertNewLabelYes(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(LABELYES$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "labelYes" element
     */
    public org.apache.xmlbeans.XmlString addNewLabelYes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LABELYES$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "labelYes" element
     */
    public void removeLabelYes(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABELYES$0, i);
        }
    }
    
    /**
     * Gets the "labelYesSort" element
     */
    public int getLabelYesSort()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABELYESSORT$2, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "labelYesSort" element
     */
    public org.apache.xmlbeans.XmlInt xgetLabelYesSort()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LABELYESSORT$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "labelYesSort" element
     */
    public boolean isSetLabelYesSort()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABELYESSORT$2) != 0;
        }
    }
    
    /**
     * Sets the "labelYesSort" element
     */
    public void setLabelYesSort(int labelYesSort)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABELYESSORT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LABELYESSORT$2);
            }
            target.setIntValue(labelYesSort);
        }
    }
    
    /**
     * Sets (as xml) the "labelYesSort" element
     */
    public void xsetLabelYesSort(org.apache.xmlbeans.XmlInt labelYesSort)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LABELYESSORT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(LABELYESSORT$2);
            }
            target.set(labelYesSort);
        }
    }
    
    /**
     * Unsets the "labelYesSort" element
     */
    public void unsetLabelYesSort()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABELYESSORT$2, 0);
        }
    }
    
    /**
     * Gets the "labelNo" element
     */
    public java.lang.String getLabelNo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABELNO$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "labelNo" element
     */
    public org.apache.xmlbeans.XmlString xgetLabelNo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABELNO$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "labelNo" element
     */
    public boolean isSetLabelNo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABELNO$4) != 0;
        }
    }
    
    /**
     * Sets the "labelNo" element
     */
    public void setLabelNo(java.lang.String labelNo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABELNO$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LABELNO$4);
            }
            target.setStringValue(labelNo);
        }
    }
    
    /**
     * Sets (as xml) the "labelNo" element
     */
    public void xsetLabelNo(org.apache.xmlbeans.XmlString labelNo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABELNO$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LABELNO$4);
            }
            target.set(labelNo);
        }
    }
    
    /**
     * Unsets the "labelNo" element
     */
    public void unsetLabelNo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABELNO$4, 0);
        }
    }
    
    /**
     * Gets the "labelNoSort" element
     */
    public int getLabelNoSort()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABELNOSORT$6, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "labelNoSort" element
     */
    public org.apache.xmlbeans.XmlInt xgetLabelNoSort()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LABELNOSORT$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "labelNoSort" element
     */
    public boolean isSetLabelNoSort()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABELNOSORT$6) != 0;
        }
    }
    
    /**
     * Sets the "labelNoSort" element
     */
    public void setLabelNoSort(int labelNoSort)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABELNOSORT$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LABELNOSORT$6);
            }
            target.setIntValue(labelNoSort);
        }
    }
    
    /**
     * Sets (as xml) the "labelNoSort" element
     */
    public void xsetLabelNoSort(org.apache.xmlbeans.XmlInt labelNoSort)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LABELNOSORT$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(LABELNOSORT$6);
            }
            target.set(labelNoSort);
        }
    }
    
    /**
     * Unsets the "labelNoSort" element
     */
    public void unsetLabelNoSort()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABELNOSORT$6, 0);
        }
    }
}
